package cn.edu.sdjzu.xg.kcsj.domain;

import java.io.Serializable;
import java.math.BigInteger;

public class DictItem implements Comparable<DictItem>, Serializable {
    private Integer id;
    private String item_text;
    private Dictionary dictionary;

    public DictItem(Integer id, String item_text, Dictionary dictionary) {
        this.id = id;
        this.item_text = item_text;
        this.dictionary = dictionary;
    }

    @Override
    public int compareTo(DictItem o) {
        return this.id - o.id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getItem_text() {
        return item_text;
    }

    public void setItem_text(String item_text) {
        this.item_text = item_text;
    }

    public Dictionary getDictionary() {
        return dictionary;
    }

    public void setDictionary(Dictionary dictionary) {
        this.dictionary = dictionary;
    }

    @Override
    public String toString() {
        return "DictItem{" +
                "id=" + id +
                ", item_text='" + item_text + '\'' +
                ", dictionary=" + dictionary +
                '}';
    }
}
